package com.example.ranl_offershow.Service;

import com.example.ranl_offershow.Entity.Data.OfferData;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OfferDataService {
    //查询所有的OfferData
    List<OfferData> getAllOfferData();

    //根据OfferData id查找
    OfferData getOfferDataById(int id);

    //根据OfferData company查找
    List<OfferData> getOfferDataByCompany(String company);

    //增加OfferData
    void createOfferData(OfferData offerData);

    //更改OfferData数据
    void updateOfferData(OfferData offerData);

    //根据OfferData id删除
    void deleteOfferData(int id);

    //根据OfferData company批量删除
    void deleteBatchOfferData(String company);
}
